###########################################
#Makefile for simple programs
###########################################
INC= -I./threadpool/
LIB=


CC=g++
CC_FLAG=-Wall -g 

PRG=test
OBJ=main.o command.o thread_process.o thread_pool.o
LDFLAGS= -lpthread -lrt -lssl


$(PRG):$(OBJ)
	$(CC) $(CC_FLAG)  $(INC) $(LIB) -o $@ $(OBJ) $(LDFLAGS)
		
.SUFFIXES: .c .o .cpp
.cpp.o:
	 $(CC) $(CC_FLAG) $(INC) -c $*.cpp -o  $*.o

.PRONY:clean
clean:
	@echo "Removing linked and compiled files......"
	rm -f $(OBJ) $(PRG)
